package code;

public class FairScheduler extends Scheduler {
	private int currentIndex;
	
	@Override
	protected void realDoStep() {
		while(actions.get(currentIndex).isFinished()==true){
			currentIndex=(currentIndex+1)%this.actions.size();
		}
		actions.get(currentIndex).realDoStep();
	}

}
